﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FeedbackDetail.aspx.cs" Inherits="UI_Bas_FeedbackDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>评论记录明细</title>         
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>    
    <script src="../../js/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('#divContent').panel();
            $('#btnModify').click(function () {
                var EbayUserId = $("#txtEbayUserId").val();
                var FeedBackID = $("#txtFeedBackID").val();
                var ItemID = $("#txtItemID").val();
                var CommentTime = $("#txtCommentTime").datebox('getValue');
                var CommentType = $("#ddlCommentType").val();
                var CommentText = $("#txtCommentText").val();
                if (CommentTime == "") {
                    alert("评价时间不能为空!")
                    return;
                }
                if (CommentType == "") {
                    alert("评价类型不能为空!");
                    return;
                }
                if (CommentText == "") {
                    alert("评价内容不能为空!");
                    return;
                }
                var url = getRootPath() + "/UI/Orders/OrdersHandler.ashx?cmd=EvaluationDetailsModify&EbayUserId=" + EbayUserId + "&FeedBackID=" + FeedBackID + "&ItemID=" + ItemID + "&CommentTime=" + CommentTime + "&CommentType=" + CommentType + "&CommentText=" + CommentText + "&ts=" + new Date().getTime();
                $.getJSON(url, function (data) {
                    var retData = EvalData(data);
                    var code = retData.retCode;
                    if (code == 0) {
                        alert(retData.retMsg);
                        window.returnValue = true;
                        window.close();
                    }
                    else {
                        alert(retData.retMsg);
                    }
                });
            });
            $('#btnDel').click(function () {
                if (!confirm("确认执行此操作吗?")) { return; }
                var EbayUserId = $("#txtEbayUserId").val();
                var FeedBackID = $("#txtFeedBackID").val();
                var ItemID = $("#txtItemID").val();
                var url = getRootPath() + "/UI/Orders/OrdersHandler.ashx?cmd=EvaluationDetailsDel&EbayUserId=" + EbayUserId + "&FeedBackID=" + FeedBackID + "&ItemID=" + ItemID + "&ts=" + new Date().getTime();
                $.getJSON(url, function (data) {
                    var retData = EvalData(data);
                    var code = retData.retCode;
                    if (code == 0) {
                        alert(retData.retMsg);
                        window.returnValue = true;
                        window.close();
                    }
                    else {
                        alert(retData.retMsg);
                    }
                });
            });
        });
        
    </script>
    <style>
    input
    {
    	width:400px;    	
    }
    select{
    	width:406px;
    }
    </style>
</head>
<body>   
   <div id="divContent" class="easyui-panel" title ="评论信息明细...">
     <form id="form1" runat="server">
        <table>
            <tr>
                <td>ebayAccount:</td>
                <td ><input ID="txtEbayUserId" runat="server" readonly="readonly"/>                   
                </td>                
              </tr> 
             <tr>
                <td>FeedBackID:</td>
                <td ><input ID="txtFeedBackID" runat="server" readonly="readonly"/>                                       
                </td>                
              </tr>            
             <tr>
                <td>ItemId:</td>
                <td><input ID="txtItemID" runat="server" readonly="readonly"/>                    
                </td>                   
              </tr> 
             <tr>
                <td>ItemTitle:</td>
                <td><input ID="txtItemTitle" runat="server" readonly="readonly"/></td>          
              </tr>
             <tr>
                <td>ItemPrice:</td>
                <td><input ID="txtItemPrice" runat="server" readonly="readonly"/>                    
                </td>                    
              </tr>           
             <tr> 
                <td>CommentingUser:</td>
                <td><input ID="txtCommentingUser" runat="server" readonly="readonly"/>                  
                </td>  
              </tr>
             <tr>                                       
                <td>CommentingUserScore:</td>
                <td><input ID="txtCommentingUserScore" runat="server" readonly="readonly"/>                   
                 </td>
              </tr>               
            <tr>                                       
                <td>CommentTime:</td> 
                <td> <input type ="text" ID ="txtCommentTime" runat="server" class ="easyui-datebox" required="true" style ="width :90px"  />            
                 </td>    
              </tr>           
            <tr>             
                <td>CommentType:</td>
                <td>
                    <select id="ddlCommentType" runat="server" ></select>
                </td>
              </tr>                             
            <tr>             
                <td>Role:</td>
                <td>
                    <select id="ddlRole" runat="server" enableviewstate=false disabled="disabled"></select>
                </td>                                 
              </tr>
            <tr>             
                <td>TransactionID:</td>
                <td><input ID="txtTransactionID" runat="server" readonly="readonly"/></td>                
             </tr>
            <tr>                                       
                <td>CurrencyId:</td>
                <td><input ID="txtCurrencyId" runat="server"  readonly="readonly"/>                   
                 </td>    
             </tr>    
            <tr>
                <td>OrderLineItemID:</td>
                <td><input ID="txtOrderLineItemID" runat="server" readonly="readonly"/></td>                
              </tr> 
            <tr>                                       
                <td>CommentText:</td>
                <td><textarea ID="txtCommentText" runat="server" style="height:60px; width:400px" ></textarea>                   
                 </td>    
              </tr>                                     
            <tr>
                <td align ="left">
                    <a id="btnDel" class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" >删除</a>
                </td>               
                <td  align ="right">                      
                    <a id="btnModify" href="#" class="easyui-linkbutton"  icon="icon-ok">修改</a>                                
                    <a href="#" class="easyui-linkbutton" icon="icon-cancel" onclick="javascript:window.close();">Close</a>
                </td>
             </tr>
        </table>
       </form>
    </div> 
</body>
</html>
